package com.tencreat.domain.account.dto;

import com.tencreat.common.enums.account.CitySmsTypeEnum;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

public class ShopOpenSendCodeDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "类型不能为空")
    @ApiModelProperty(value = "验证码类型",required = true)
    private CitySmsTypeEnum type;

    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^1\\d{10}$", message = "手机格式不正确")
    @ApiModelProperty(value = "手机号",required = true)
    private String phone;

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public static long getSerialversionuid() {
        return serialVersionUID;
    }

    public CitySmsTypeEnum getType() {
        return type;
    }

    public void setType(CitySmsTypeEnum type) {
        this.type = type;
    }
}
